import request from '@/utils/request'
import qs from 'qs'
import da from "element-ui/src/locale/lang/da";  //处理json数据

export const tMemberLis = (search) =>
  request({
    url: '/tMemberLis',
    method: 'get'
  })

export const tHealthmgrList = (search) =>
  request({
    url: '/tHealthmgrList',
    method: 'get'
  })

export const tMemberDynamicinfo = (id) =>
  request({
    url: '/tMemberDynamicinfo',
    method: 'post',
    data:{id:id}
  })

export const tMembermedicalhistory = (id) =>
  request({
    url: '/tMembermedicalhistory',
    method: 'post',
    data:{id:id}
  })


export const archiveadd= (archives,myDiseaseHas,dearDiseaseHas) =>
  request({
    url: '/archiveadd',
    method: 'post',
    data:{archives:archives,myDiseaseHas:myDiseaseHas,dearDiseaseHas:dearDiseaseHas}
  })

export const archiveup= (archives) =>
  request({
    url: '/archiveup',
    method: 'post',
    data:archives
  })

export const tOrder= (id) =>
  request({
    url: '/tOrder',
    method: 'post',
    data:{id:id}
  })

export const tSetmealLists = () =>
  request({
    url: '/tSetmealLists',
    method: 'get'
  })


export const tMemberInfoup = (tMemberInfo) =>
  request({
    url: '/tMemberInfoup',
    method: 'post',
    data:tMemberInfo
  })
